function drawLine() {
	var query = new Query('ResApplyQueryHandler', 'ResApplyQueryHandler');
	query.setHandlerMethod('queryInfo');
		startDate =Ext.getCmp("startDate").getValue();
		endDate =Ext.getCmp("endDate").getValue();
		if(!startDate||!endDate)
			{
			Pearlsen.Utils.showInfoMsg("开始日期和结束日期必须输入");
				return;
			}
	query.addCondition("startDate", startDate);
	query.addCondition("endDate", endDate);
	query.setCompletedFun(afterloadInfo);
	query.setCompletedFunScope(drawLine);
	query.load();
}
function afterloadInfo(success, dataset, response, opts) {
	if (success) {
		if (dataset && !Ext.isEmpty(dataset.record)) {
			var record = dataset.record;
			var data =[];
			for(var i = 0 ; i < record.length;i++)
				{
				data.push({
						date:record[i].date,
						cpu:record[i].cpu*500,
						mem:record[i].mem,
						disk:record[i].disk
						});
				}
			Ext.getCmp("lineInfoPanel").getStore().loadData(data);
		} else {
			Ext.Msg.alert("提示", "查询不到监控数据");
		}
	} else {
		Ext.Msg.alert("提示", "查询不到监控数据");
	}
}
